<template>
    <el-card  class="mt-4">

    <template #header>

      <div class="card-header flex justify-between">
        <span>{{ title }}</span>
        <div class="tips">{{ tips }}</div>
      </div>

    </template>
       <el-row gutter="20"> 
        <el-col :span="6" v-for="item,index in data" :key="index"  >
         <div class="comntent bg-gray-200 flex flex-col justify-center items-center p-5">
             <div class="text-2xl">{{ item.value }}</div>
             <div class="text-gray-500 text-xs">{{ item.label }}</div>
         </div>
        </el-col>
       </el-row>
  </el-card>  
</template>

<script setup>
const props = defineProps({
    title: {
        type: String,
        default:""
    },
    tips: {
        type: String,
        default:""
    },
    data: {
        type: Array,
        default:[]
    }
})
</script>

<style lang="less" scoped>
.tips
{
    display: flex;
    justify-content: center;
    align-items: center;
    border:1px red solid;
    font-size: 10px;
    color: red;
    padding: 5px 10px;
}

</style>